//
//  FangwenTableViewCell.m
//  jizhiyunduan
//
//  Created by 鞠超 on 16/4/21.
//  Copyright © 2016年 JC. All rights reserved.
//

#import "FangwenTableViewCell.h"

@implementation FangwenTableViewCell

- (instancetype )initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if(self)
    {
        [self p_setupView];
    }
    
    return self;
}

- (void )p_setupView
{
    self.name = [[UILabel alloc] init];
    self.name.text = @"山东智顺网络公司有限公司";
    self.name.font = [UIFont systemFontOfSize:15];
    [self.contentView addSubview:self.name];
    
    self.web_name = [[UILabel alloc] init];
    self.web_name.text = @"shandongzhishunwangluoyouxiangongsi.net";
    self.web_name.font = [UIFont systemFontOfSize:13];
    self.web_name.textColor = [UIColor grayColor];
    [self.contentView addSubview:self.web_name];
    
    
    self.image = [[UIImageView alloc] init];
    self.image.image = [UIImage imageNamed:@"youfanhui.png"];
    [self.contentView addSubview:self.image];
}

- (void )layoutSubviews
{
    [super layoutSubviews];
    
    self.name.frame = CGRectMake(10, 10, SCREEN_WIDTH - 45, 20);
    
    self.web_name.frame = CGRectMake(10, 35, SCREEN_WIDTH - 45, 15);
    
    self.image.frame = CGRectMake(SCREEN_WIDTH - 25, 20, 20, 20);
}





@end
